package com.wrupple.muba.catalogs.client.module.services.logic.impl;

import com.google.inject.Singleton;
import com.wrupple.muba.catalogs.client.module.services.logic.CatalogEntryKeyProvider;
import com.wrupple.muba.catalogs.domain.JsCatalogKey;

@Singleton
public class CatalogEntryKeyProviderImpl implements CatalogEntryKeyProvider {

	@Override
	public Object getKey(JsCatalogKey item) {
		if(item==null){
			return null;
		}
		return item.getId();
	}

}
